<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
	<title>Content</title>

	<ui:composition template="templatePrincipal.xhtml">

		<ui:define name="header">
			<ui:include src="headerVendedor.xhtml" />
		</ui:define>
		<p:resources />
		<ui:define name="centro">
			<h:form prependId="false">
				<p:panel id="pdestaque" header="Produtos em destaque">

				</p:panel>
				<p:panel id="precentes" header="Produtos incluidos recentemente">

					<p:dataGrid var="produto" value="#{loginVendViewBean.listaProdutos}" columns="3"
						rows="12" paginator="true" effect="true"
						paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
						rowsPerPageTemplate="9,12,15">

						<p:column>
							<p:panel header="#{produto.titulo}" style="text-align:center">
								<h:panelGrid columns="1" style="width:100%">
									
									<h:outputText value="#{produto.descricao}" />
										
									<p:graphicImage value="#{loginVendViewBean.pegaImagemDoProduto()}" 
											width="50" height="50">
										<f:param name="pid" value="#{produto.produtoId}" />
									</p:graphicImage>
									
									<!--
									<p:graphicImage value="/images/cars/#{car.manufacturer}.jpg" />
									 
									<p:commandLink update="carDetail" oncomplete="carDialog.show()"
										title="View Detail">
										<p:graphicImage value="/images/search.png" />
										<f:setPropertyActionListener value="#{car}"
											target="#{tableBean.selectedCar}" />
									</p:commandLink>
									 -->
								</h:panelGrid>
							</p:panel>
						</p:column>

					</p:dataGrid>



				</p:panel>
			</h:form>
		</ui:define>
		<ui:define name="right">
			<h:form prependId="false">
				<p:panel id="pvendedor" header="Vendedor">

				</p:panel>

				<p:panel id="popcoes" header="Opções">

				</p:panel>

				<p:panel id="ppagamento" header="Forma de pagamentos">

				</p:panel>

				<p:panel id="pestatisticas" header="Estatísticas">

				</p:panel>

			</h:form>
		</ui:define>

	</ui:composition>
</h:head>
</html>